// 获取我的收藏列表
export const getMyCollectionListApi = (params) => wx.http.get('/chat/collect/collectList', params)
// 获取我打赏的帖子列表
export const getMyRewardListApi = (params) => wx.http.get('/chat/topicReward/getRewardList', params)
// 获取打赏我的帖子列表
export const getRewardMeListApi = (params) => wx.http.get('/chat/topicReward/getRewardMeList', params)
// 获取我的发布帖子列表
export const getMyPostListApi = (params) => wx.http.get('/chat/topic/userTopic', params)
// 获取我的粉丝列表
export const getMyFansListApi = (params) => wx.http.get('/chat/follow/getFansList', params)
// 修改昵称   
export const editNickNameApi = ({
  nickName,
  userId
}) => wx.http.post('/admin/user/editMaterial?nickName=' + nickName + '&userId=' + userId)
// 修改邮箱
export const editEmailApi = ({
  email,
  userId
}) => wx.http.post('/admin/user/editMaterial?email=' + email + '&userId=' + userId)
// 获取用户信息
export const getUserInfoApi = (userId) => wx.http.get('/admin/user/selectByUserId?userId=' + userId)
// 查询他人主页信息
export const getOtherUserInfoApi = (data) => wx.http.post('/admin/user/selectOtherInfoByUserId',data)
// 消息通知开关控制
export const messageSwitchApi = (data) => wx.http.post('/admin/user/messageSwitch', data)
// 获取消息通知开关初始状态
export const getMessageSwitchDefaultApi = (userId) => wx.http.get('/admin/user/messageSwitchSelect?userId=' + userId)
// 打赏帖子
export const addRewardApi = (params) => wx.http.post('/chat/topicReward/addReward', params)
// 点赞
export const likeApi = (params) => wx.http.get('/chat/topic/like', params)
// 取消点赞
export const cancelLikeApi = (params) => wx.http.get('/chat/topic/cancelLike', params)
// 收藏
export const CollectApi = (params) => wx.http.post('/chat/collect/addCollect', params)
// 取消收藏
export const cancelCollectApi = (params) => wx.http.get('/chat/collect/cancelCollect', params)